package com.xuanyuanxinyu.compose.theme

import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.googlefonts.Font
import androidx.compose.ui.text.googlefonts.GoogleFont
import com.xuanyuanxinyu.res.R


/**
 * @FileName:
 * @Description:字体风格
 * @author ken.luo
 * @date 2023/4/4
 * @version V1.0
 * @email 424533553@qq.com
 */
val provider = GoogleFont.Provider(
    providerAuthority = "com.google.android.gms.fonts",
    providerPackage = "com.google.android.gms",
    certificates = R.array.com_google_android_gms_fonts_certs
)
val MontserratFont = GoogleFont(name = "Montserrat")
val KarlaFont = GoogleFont(name = "Karla")
val MontserratFontFamily = FontFamily(
    Font(googleFont = MontserratFont,fontProvider = provider,weight = FontWeight.Normal),
    Font(resId = R.font.montserrat_regular,weight = FontWeight.Normal),
    Font(googleFont = MontserratFont,fontProvider = provider,weight = FontWeight.Light),
    Font(resId = R.font.montserrat_light,weight = FontWeight.Light),
    Font(googleFont = MontserratFont,fontProvider = provider,weight = FontWeight.Medium),
    Font(resId = R.font.montserrat_medium,weight = FontWeight.Medium),
    Font(googleFont = MontserratFont,fontProvider = provider,weight = FontWeight.SemiBold),
    Font(resId = R.font.montserrat_semibold,weight = FontWeight.SemiBold),
)
val KarlaFontFamily = FontFamily(
    Font(googleFont = KarlaFont,fontProvider = provider),
    Font(resId = R.font.karla_regular),
    Font(googleFont = KarlaFont,fontProvider = provider,weight = FontWeight.Bold),
    Font(resId = R.font.karla_bold,weight = FontWeight.Bold),
)

/**
 * 字体风格
 */
private val Montserrat = FontFamily(
    Font(R.font.montserrat_light, FontWeight.Light),
    Font(R.font.montserrat_regular, FontWeight.Normal),
    Font(R.font.montserrat_medium, FontWeight.Medium),
    Font(R.font.montserrat_semibold, FontWeight.SemiBold)
)

